import request from '@/utils/request'

// 出租
export function rentOut(params) {
  return request({
    url: '/hire/action.do',
    method: 'post',
    data: params
  })
}

// 查看租金
export function getHireList(params) {
  return request({
    url: '/hireList/getHireList.do',
    method: 'post',
    data: params
  })
}

// 租金明细
export function getHirePay(params) {
  return request({
    url: '/hireList/getHirePay.do',
    method: 'post',
    data: params
  })
}

// 获取到租金合同详情
export function getChartInfoRoom(params) {
  return request({
    url: '/hireList/getChartInfoRoom.do',
    method: 'post',
    data: params
  })
}

// 确认收租
export function insertHirePay(params) {
  return request({
    url: '/hire/insertHirePay.do',
    method: 'post',
    data: params
  })
}
